package notentool;
import java.io.*;
import java.net.*;
import java.util.*;

import javax.swing.text.BadLocationException;
import javax.swing.text.html.HTML;
import javax.swing.text.html.HTMLDocument;
import javax.swing.text.html.HTMLEditorKit;
import javax.swing.text.html.parser.ParserDelegator;


import sun.org.mozilla.javascript.Parser;



import java.io.FileWriter;
import java.io.IOException;
import org.jdom2.Attribute;
import org.jdom2.Document;
import org.jdom2.Element;
import org.jdom2.output.Format;
import org.jdom2.output.XMLOutputter;



public class Trys {
	/*
	
	private static void printTextContentOfTd(final Node tdNode) {
	   final NodeList children = tdNode.getChildNodes();
	 
	   for( int i = 0; i< children.getLength(); i++ ) {
	     final Node current = children.item(i);
	     if (current.getNodeType() == Node.TEXT_NODE) {
	       System.out.println(current.getNodeValue());
	     }
	   }
	}
	
	private static void findTds(final NodeList nodeList) {
		for(int i = 0; i<nodeList.getLength(); i++) {
			 
		    final Node current = nodeList.item(i);
		 
		    if( current.getNodeType() != Node.ELEMENT_NODE) { 
		      continue;
		    }
		    System.out.println(current.getNodeValue());
		    System.out.println("TESTKLASSE");
		    if ( "td".equalsIgnoreCase(current.getNodeValue()) ) {
		      // Wir haben einen td gefunden.
		    	
		      printTextContentOfTd(current);
		    }
		    
		    // rekursiver Aufruf, um weiter in den Baum hinabzusteigen
		    //findTds(current);
		  }
		  
	}
*/	
	public static void main(String[] args) {
		System.out.println("TESTKLASSE");
	
		
		System.out.println("TESTKLASSE ende");
	}
}

/* deprecated code 
 // filters an asi key from a string
String asi=null;
for(String line=reader.readLine(); line != null; line=reader.readLine() ) {
	Matcher matcher = Pattern.compile( "asi.{20}" ).matcher( line );
	if( true == matcher.find() ){
		asi=matcher.group();
		break;
	}
*/